package com.cndw.kungfu.model.player;

import com.cndw.kungfu.ext.NumberProcesser;

public class FormulaMarry {

	public static int[] xStep = { 0, 72, 72, 72, 72, 216, 216, 360, 360, 72 };

	public static int getCostIntimacy(int level) {
		int stpe = NumberProcesser.ceil(level, 9);
		return stpe * 10;
	}

	public static int getCostCD(int level) {
		int cd = 30 + level * 10;
		return cd > 7200 ? 7200 : cd;
	}

	public static int[] getAddv(int level) {
		if (level <= 0) {
			return null;
		}
		int stpe = level / 9;
		int indexId = level % 9;
		int[] addv = new int[10];
		for (int i = 1; i < xStep.length; i++) {
			addv[i] = (stpe + (indexId >= i ? 1 : 0)) * xStep[i];
		}
		return addv;
	}

}
